package com.jianying.mapper;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.jianying.base.BaseMapper;
import com.jianying.dataSource.TargetDataSource;
import com.jianying.domain.Settlement;

@Repository("settlementMapper")
public class SettlementMapper extends BaseMapper {

	private static final String NAME_SPACE = "com.jianying.mapper.SettlementMapper.";
	
	@TargetDataSource(name="ds1")
	public void insert(Settlement settlement){
		getSqlSessionTemplate().insert(NAME_SPACE + "insert", settlement);
	}
	
	public List<Settlement> all(Integer tenantId){
		return getSqlSessionTemplate().selectList(NAME_SPACE + "all", tenantId);
	}
	
}
